#include "Init.h"
#include <pthread.h>

#define photo_path "/myworking/nfs-zly/myproject/photo/02-eroll_register/BMP/01login1.bmp"
#define test_path "/myworking/nfs-zly/myproject/photo/02-eroll_register/BMP/reginfo.bmp"
struct fb_var_screeninfo varinfo;
struct LCD lcd;
extern int touch_x;
extern int touch_y;
pthread_t pid;

int main(int argc, char const *argv[])
{
    // 初始化随机种子
    srand(time(NULL));

    // 所有设备初始化
    init_statu(&lcd);
    // display_a_photo(&lcd, photo_path);

    // 创建线程

    pthread_create(&pid, NULL, read_touch_screeninfo, NULL);

    touch_judge();
    reset_xy();
    return 0;
}
